package com.aaa.dao;

import java.util.List;
import java.util.Map;

/**
 * @program: gz01-web
 * @description:
 * @author: 闫克起2
 * @create: 2023-09-14 11:10
 **/
public class UserDao extends BaseDao {
    /**
     * 根据账号和密码查询用户信息
     * @param username
     * @param password
     * @return
     */
    public Map<String,Object> findByUsernameAndPwd(String username,String password){
        String sql="select * from t_user where username=? and password=?";
        List<Map<String, Object>> list = querySQL(sql, username, password);
        if(list!=null&&list.size()>0){
            return list.get(0);
        }
        return null;
    }
}
